public class Fibonacci {
    public static String toString(int[] set) {
        String setStr = "[";
        for (int i = 0; i < set.length; i++) {
            setStr = setStr + set[i] + ",";
        }
        return setStr.substring(0, set.length - 1) + "]";
    }

    public static String GetFib(int[] set) {

        for (int i = 0; i < set.length; i++) {
            if (i == 0 || i == 1) {
                set[i] = 1;
            } else {
                set[i] = set[i - 1] + set[i - 2];
            }
        }
//        System.out.println(set.toString());
        return toString(set);
    }

}
